<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class CityList extends Model
{
    public static function getCityList()
    {
        $array = CityList::selectRaw("`key` ,`name`")
            ->pluck('name', 'key')
            ->toArray();
        return $array;
    }
}
